#!/bin/sh
#
# $Header$
#

if [ -n "`%OPTWARE_TARGET_PREFIX%/bin/pidof collectdmon`" ] ; then
    killall collectdmon 2>/dev/null
fi

sleep 2
%OPTWARE_TARGET_PREFIX%/sbin/collectdmon -c %OPTWARE_TARGET_PREFIX%/sbin/collectd -- -C %OPTWARE_TARGET_PREFIX%/etc/collectd.conf
